package com.cgly.medical.mapper;


import com.cgly.medical.domain.DrugOrder;

import java.util.List;

public interface DrugOrderMapper {

    //查询所有的订单信息
    List<DrugOrder> getAllDrugOrder();

    //条件查询订单信息
    List<DrugOrder> getSomeDrugOrder(DrugOrder drugOrder);

    //删除订单信息
    int deleteDrugOrder(DrugOrder drugOrder);

    //根据三主键查询唯一订单信息
    DrugOrder getOneDrugOrder(DrugOrder drugOrder);

    //修改订单信息
    int updateDrugOrder(DrugOrder drugOrder);

    //插入订单
    int insertDrugOrder(DrugOrder drugOrder);
    //得到新增订单
    List<DrugOrder> selectDrugOrderMaxID();

    //通过订单id查询订单
    DrugOrder getDrugOrderById(int orderId);

    //根据endOrderID查询药品订单
    List<DrugOrder> getDrugOrderByEndOrderId(String endOrderId);
}
